<%--
  Created by IntelliJ IDEA.
  User: LXhan
  Date: 2017/10/4
  Time: 12:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <ul class="layui-tab-title">
        <li class="layui-this">电表管理</li>
        <li>水表管理</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <!--电表管理-->
            <div class="layui-inline">
                <input class="layui-input" id="elecode" placeholder="请输入电表编号"
                       autocomplete="off">
            </div>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="eledate" placeholder="yyyy-MM">
            </div>
            <button class="layui-btn" onclick="search(0)">搜索</button>
            <%--<button class="layui-btn layui-btn-normal" id="genElecRecord" onclick="genCurmonthRecs('b938139a48ed4344a11a7180b48eede6')">生成本月抄表记录</button>--%>
            <button class="layui-btn layui-btn-normal" id="genElecRecord">生成本月抄表记录</button>
            <button class="layui-btn layui-btn-normal" id="genElecBillMany">批量生成账单</button>
            <table id="dbgl" lay-filter="power">
                <script type="text/html" id="dbglBar">
                    {{#  if(d.IS_BILL == 0){ }}
                    <a class="layui-btn layui-btn-mini" lay-event="genRecord">生成账单</a>
                    {{#  } else { }}
                    {{#  } }}
                </script>
            </table>
        </div>
        <div class="layui-tab-item ">
            <!-- 水表管理-->
            <div class="layui-inline">
                <input class="layui-input" name="id" id="watercode" placeholder="请输入水表编号"
                       autocomplete="off">
            </div>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="waterdate"  placeholder="yyyy-MM">
            </div>
            <button class="layui-btn" onclick="search(1)">搜索</button>
            <%--<button class="layui-btn layui-btn-normal" id="genWaterRecord" onclick="genCurmonthRecs('ae5806f8184546208411b99e6117eaa2')">生成本月抄表记录</button>--%>
            <button class="layui-btn layui-btn-normal" id="genWaterRecord">生成本月抄表记录</button>
            <button class="layui-btn layui-btn-normal" id="genWaterBillMany">批量生成账单</button>
            <table id="sbgl" lay-filter="water">
                <script type="text/html" id="sbglBar">
                    {{#  if(d.IS_BILL == 0){ }}
                    <a class="layui-btn layui-btn-mini" lay-event="genRecord">生成账单</a>
                    {{#  } else { }}
                    {{#  } }}
                </script>
            </table>
        </div>
    </div>
</div>
<script type="text/html" id="emptyTemp"></script>